var bV = parseInt(navigator.appVersion);
var NN4 = document.layers ? true : false;
var IE4 = document.all && bV >= 4 ? true : false;

var showPopStep = 10;
var popOpacity = 80;
var sPop = '';
var tFadeOut = null;

function showPopupText(popText)
{
	if (!IE4) return;

	var o = event.srcElement;
	var MouseX = event.x;
	var MouseY = event.y;

	if (popText != sPop)
	{
		sPop = popText;
		clearTimeout(tFadeOut);

		if (sPop == null || sPop == '')
		{
			document.all.popLayer.innerHTML = '';
			document.all.popLayer.style.filter = "Alpha()";
			document.all.popLayer.filters.Alpha.opacity = 0;	
		}
		else
		{
			document.all.popLayer.innerHTML = sPop;
			document.all.popLayer.style.filter = "Alpha(Opacity=0)";
			var popWidth = document.all.popLayer.clientWidth;
			var popHeight = document.all.popLayer.clientHeight;
			document.all.popLayer.style.left = MouseX + popWidth > document.body.clientWidth - 5 ? document.body.clientWidth - popWidth - 5 : MouseX;
			document.all.popLayer.style.top = MouseY + document.body.scrollTop;
			fadeOut();
		}
	}
}
function fadeOut()
{
	if (popLayer.filters.Alpha.opacity < popOpacity)
	{
		popLayer.filters.Alpha.opacity += showPopStep;
		tFadeOut = setTimeout('fadeOut()', 30);
	}
}